import request from "@/utils/index.js";
//上传照片接口
export const uploadService = (file) => {
    const formData = new FormData();
    formData.append("file", file);
    console.log("uploadService");
    console.log(file);
    return request.post("/api/common/upload", {file}, {headers: {'Content-Type': 'multipart/form-data'}});
}

//得到管理注册数据
export const getRegisterDataService = () => {
    return request.get("/api/common/registerData");
}